#include "queue.h"

void queue_test_one()
{
	queue q;
	queue_init(&q);
	queue_push(&q, 1);
	queue_push(&q, 2);
	queue_push(&q, 3);
	queue_push(&q, 4);

	queue_data_type front = queue_front(&q);
	queue_data_type back = queue_back(&q);
	int count = queue_size(&q);
	printf("%d ", count);
	printf("%d ", front);
	printf("%d", back);
	queue_pop(&q);
	printf("\n");

	 count = queue_size(&q);
	 front = queue_front(&q);
	  back = queue_back(&q);
	  printf("%d ", count);
	printf("%d ", front);
	printf("%d", back);
	queue_pop(&q);
	printf("\n");


	count = queue_size(&q);
	back = queue_back(&q);
	 front = queue_front(&q);
	 printf("%d ", count);
	printf("%d ", front);
	printf("%d", back);
	queue_pop(&q);
	printf("\n");

	count = queue_size(&q);
	back = queue_back(&q);
	front = queue_front(&q);
	printf("%d ", count);
	printf("%d ", front);
	printf("%d", back);
	queue_pop(&q);
	printf("\n");


	queue_destroy(&q);
}

int main()
{
	queue_test_one();
	return 0;
}